package com.lanou.mapper;

import com.lanou.bean.Account;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface AccountMapper {
    int deleteByPrimaryKey(Integer accountId);

    int insert(Account record);

    int insertSelective(Account record);

    Account selectByPrimaryKey(Integer accountId);

    int updateByPrimaryKeySelective(Account record);

    int updateByPrimaryKey(Account record);


    List<Account> selectAllAccount();

    int updateStatus(@Param("account_id") Integer account_id, @Param("status") Integer status,@Param("pause_date") Date pause_date);

    int updateStatus1(@Param("account_id") Integer account_id, @Param("status") Integer status,@Param("close_date") Date close_date);

    int selectIdByidcard(String referrerid);

    int insertAccount(Account account);


    int updateAccount(@Param("account_id") Integer account_id,@Param("close_date") Date close_date);

    Account selectAccountById(Integer account_id);

    Account selectidcardById(Integer recommenderId);

    int updateAccountInfo(Account account);

    List<Account> selectAllAccountByCondition(Account account);

}